This will describe how to make NetBook understand more file formats. There is also another type of plugin, which deals with adding new protocols.
It is quite simple once you understand what is going on. Open the sample plug-in while viewing these instructions and you will be creating your own plugs in minutes.
NOTE: make a copy of the sample plugins before changing them in ResEdit or Resourcer, just in case.
1. open ResEdit or Resourcer
2. copy the resources in the example to a new file
3. edit the "TRAN" resource using the "TEXT" editor
Format:
line 1 - Creator of the filetype
line 2 - Type of the filetype
line 3 - an expression that should result in the name of the bookmark
line 4 - an expression that should result in the URL of the bookmark
expressions: very simple at the moment, so not very powerful. Should work with most file formats though.
meow//whoa
... means that on every line in the file, NB will search for "meow", and take everything between it and "whoa", if found, and return it.
so, if URLs are stored in this way in a file...
<http://blah.com>
then this is how the URL expression should be:
<//>
... and since there is no name in that file format, use the same as "name" expression.
Please send in any plug-ins you make so others may enjoy them also. Send them via e-mail to stefan@rincewind.net and be sure to include a note about what software it is for (what it handles) and any information about yourself you would like included with your plug-in.